/* styles.css */
body {
    background-color: #f0f0f0; 
    color: #333333; 
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #3c64cf; 
    padding: 20px;
    text-align: center;
    color: #ffffff; 
}

header h1 {
    margin: 0;
    font-size: 24px;
}

.container {
    display: flex;
    height: calc(100vh - 140px); 
}

.left {
    flex: 3; 
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.left ul {
    list-style-type: none;
    padding: 0;
}

.left li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0; 
}

.left li:last-child {
    border-bottom: none; 
}

.left img {
    margin-right: 10px;
    border-radius: 5px; 
}

.left a {
    color: #041d43; 
    text-decoration: none;
    font-weight: bold;
}

.left a:hover {
    text-decoration: underline;
}

.right {
    flex: 1; 
    background-color: #ffffff; 
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1); 
    overflow: auto;
}

.right h2 {
    margin-top: 0;
    color: #0f479c;
}

.right ol {
    padding-left: 20px;
}

.right footer {
    text-align: center;
    padding: 10px 0;
    background-color: #1e453e; 
    color: #ffffff; 
    margin-top: 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); 
}

footer {
    text-align: center;
    padding: 10px 0;
    background-color: #3c64cf;
    color: #ffffff; 
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); 
    width: 100%;
    position: absolute;
    bottom: 0;
}


.search-container {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}
.search-input {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ccc;
    width: 70%;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}
.search-button {
    margin-left: 10px;
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    background-color: #3c64cf;
    color: white;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
}
.search-button:hover {
    background-color: #3c64cf;
}

@media screen and (max-width: 768px) {
    .mobile-hide {
        display: none;
    }
    
    .container {
        flex-direction: column;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .left {
        width: 100%;
    }
    
    aside.left {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    aside.left ul {
        width: 100%;
        padding: 0;
    }
    
    aside.left ul li {
        width: 100%;
        box-sizing: border-box;
    }
    
    footer {
        width: 100%;
        box-sizing: border-box;
        padding: 15px;
    }
    
    header {
        width: 100%;
        box-sizing: border-box;
    }
}

/* 自定义滚动条样式 */
.left::-webkit-scrollbar {
    width: 6px;
}

.left::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.left::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.left::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 适配 Firefox */
.left {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}